package com.miao.elm.feign;

import com.miao.elm.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "food-server", fallback = FoodFeignClientCallback.class)
public interface FoodFeignClient {

    @RequestMapping("/FoodController/info/{foodId}")
    R getFoodInfo(@PathVariable("foodId") Integer foodId);

}
